package cn.accp.mvc.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AjaxController {
	@RequestMapping("/ajax")
	public void ajax(String name,HttpServletResponse response) throws IOException{
		System.out.println("----ajax-------");
		if(name.equals("maizi")){
			response.getWriter().println("true");
		}else {
			response.getWriter().println("false");
		}
	}
	
}
